<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>perspective</title>
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    ul{
      list-style: none;
      width: 1000px;
      height: 400px;
      border: 1px solid gray;
      margin: 0 auto;
      perspective: 300px;
      /* perspective-origin: 20% 50%; */
    }
    li{
      float: left;
      width: 150px;
      height: 200px;
      margin-top: 100px;
      background-color: red;
      margin-right: 100px;
      transform: perspective(300px) rotateY(45deg);
    }
  </style>
</head>
<body>
  <ul>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
</ul>
</body>
</html>